package com.yc.chaoshi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xz
 * @since 2022-08-04
 */
@TableName("oms_order")
public class OmsOrder implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 用户id
     */
      private Integer userId;

      /**
     * 订单项目id
     */
      private Integer orderitemId;

      /**
     * 配送方式(0自有物流 1顾客自提)
     */
      private Integer deliveryWay;

      /**
     * 地址id
     */
      private Integer adressId;

      /**
     * 订单状态0-待付款1-待发货2-已发货3-已完成4-无效订单）
     */
      private Integer confirmStatus;

      /**
     * 提交时间
     */
      private LocalDateTime createTime;

      /**
     * 总金额
     */
      private Integer sumCount;

      /**
     * 支付时间
     */
      private LocalDateTime payTime;

      /**
     * 0禁用 1启用
     */
      private Integer status;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public Integer getUserId() {
        return userId;
    }

      public void setUserId(Integer userId) {
          this.userId = userId;
      }
    
    public Integer getOrderitemId() {
        return orderitemId;
    }

      public void setOrderitemId(Integer orderitemId) {
          this.orderitemId = orderitemId;
      }
    
    public Integer getDeliveryWay() {
        return deliveryWay;
    }

      public void setDeliveryWay(Integer deliveryWay) {
          this.deliveryWay = deliveryWay;
      }
    
    public Integer getAdressId() {
        return adressId;
    }

      public void setAdressId(Integer adressId) {
          this.adressId = adressId;
      }
    
    public Integer getConfirmStatus() {
        return confirmStatus;
    }

      public void setConfirmStatus(Integer confirmStatus) {
          this.confirmStatus = confirmStatus;
      }
    
    public LocalDateTime getCreateTime() {
        return createTime;
    }

      public void setCreateTime(LocalDateTime createTime) {
          this.createTime = createTime;
      }
    
    public Integer getSumCount() {
        return sumCount;
    }

      public void setSumCount(Integer sumCount) {
          this.sumCount = sumCount;
      }
    
    public LocalDateTime getPayTime() {
        return payTime;
    }

      public void setPayTime(LocalDateTime payTime) {
          this.payTime = payTime;
      }
    
    public Integer getStatus() {
        return status;
    }

      public void setStatus(Integer status) {
          this.status = status;
      }

    @Override
    public String toString() {
        return "OmsOrder{" +
              "id=" + id +
                  ", userId=" + userId +
                  ", orderitemId=" + orderitemId +
                  ", deliveryWay=" + deliveryWay +
                  ", adressId=" + adressId +
                  ", confirmStatus=" + confirmStatus +
                  ", createTime=" + createTime +
                  ", sumCount=" + sumCount +
                  ", payTime=" + payTime +
                  ", status=" + status +
              "}";
    }
}
